import { createStore, applyMiddleware } from 'redux'
import reducer from './reducer'
import thunk from 'redux-thunk'
// 2. 创建store对象
const store = createStore(reducer, applyMiddleware(thunk))
export default store
